package com.ssm.user.designPattern.abstractFactoryPattern.easy;

import com.ssm.user.designPattern.abstractFactoryPattern.easy.Color.Color;
import com.ssm.user.designPattern.abstractFactoryPattern.easy.Shape.Shape;

public abstract class AbstractFactory {

    /**
     * 使用抽象工厂类 管理两个工厂(Color和Shape),这样外部就可以利用多态获取子工厂
     */

    public abstract Color getColor(String color);

    public abstract Shape getShape(String shape);
}
